<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>goal_new</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/style.css" />
</head>
<body>
	<div class="container">
		<!--header start-->
		<div class="header">
			<h1 class="logo"><a href="">项目管理系统</a></h1>
		</div>
		<!--header end-->
		<div class="content">
			<div class="row">
				<div class="span9">
					<div class="list">
						<span><i class="icon-hand-right"></i>编辑目标</span>
					</div>
					<div class="newproduct">
						<form class="form-horizontal" action="goaledit.jspx" method="post" id="myform">
							<div class="control-group">
								<label class="control-label">目标名称</label>
								<div class="controls">
									<input type="hidden" name="id" value="${goal.id }">
									<input type="text" id="inputName" value="${goal.name}" class="span5 {required:true,messages:{required:'请输入目标名称'}}" name="goalname">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">目标描述</label>
								<div class="controls">
									<textarea rows="6"  class="span5 {required:true,messages:{required:'请输入目标描述'}}" name="goaldesc">${goal.desc }</textarea>
								</div>
							</div>
							<div class="form-actions">
								<button type="button" class="btn btn-primary" id="save">保存</button>
								<button type="button" class="btn" id="return">返回</button>
							</div>
						</form>
					</div>
				</div>
				<div class="span3"></div>
			</div>
		</div>
		<div class="footer">
			<p>Copyright © 2013 xxx版权所有</p>
		</div>
	</div>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/jquery.validate.min.js"></script>
	<script type="text/javascript" src="js/jquery.metadata.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#myform").validate();
			$("#save").click(function(){
				$(".form-horizontal").submit();
			});
			$("#return").click(function(){
				window.location="goallist.jspx";
			});
		});
	</script>
</body>
</html>